<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::middleware('auth:api')->get('/user', function (Request $request) {
    return $request->user();
});
Route::get('test/{id}',"TestController@test");
Route::post('create',"TestController@create");

Route::get('orderList',"TestController@orderList");
Route::post('collect',"TestController@collect");
Route::post('addCart',"TestController@addCart");
Route::post('goods_cart',"TestController@goods_cart");
Route::post('dz',"TestController@dz");
Route::post('upload',"TestController@upload");
Route::post('goodsList',"TestController@goodsList");
Route::get('showss',"TestController@showss");
Route::post('nocollect',"TestController@nocollect");
Route::post('nodz',"TestController@nodz");